import Cookies from 'js-cookie'

export const useAppStore = defineStore('app', () => {
  const state = reactive({
    collapse: Cookies.get('collapse') === 'true',
    tabList: [],
    appTitle: '',
    loginStyle: 1, // 登录风格[1-传统风格(用户名密码)，2-定制风格(手机号+验证码)]
    theme: 'dark'
  })
  return {
    ...toRefs(state)
  }
})

